function SCROLL(name){
    $(window).on("scroll",function(){
        if(( $(name).offset().top - $(this).scrollTop() ) < $(this).height()){
            //console.log('进来了');
            $(name).addClass('animated').addClass('fadeInUp');
        }
    });
}
//index页面
SCROLL('body>div.main>div.CH-cont>.cont>.title');
SCROLL('body>div.main>div.CH-cont>.cont>.border');
SCROLL('body>div.main>div.CH-cont>.cont>.ajax');
SCROLL('body>div.main>div.CH-cont>.cont>.button');
SCROLL('body>div.footer>div.foot>.flex');
SCROLL('body>div.footer>div.f-bot>div');